package com.dubbo.consumer.service.impl;

import com.dubbo.api.service.AppleService;
import com.dubbo.consumer.service.ProductAppleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * dubbo rpc 通过配置文件方式
 */
@Slf4j
@Service
public class ProductAppleServiceImpl implements ProductAppleService {

    @Resource
    private AppleService appleService;

    @Override
    public List<String> listApple() {
        List<String> list = appleService.listApple();
        log.info("consumer {}",list);
        return list;
    }
}
